﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Core.Utilities;
using VOL.Entity.DomainModels;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.BasicData;


namespace VOL.SmartMecial.Services.BasicData
{
    /// <summary>
    /// 显示病房列表
    /// </summary>
    public class BedNursingUnitService : IBedNursingUnitService
    {
        private readonly IBaseRepository<Bed> _bedRepo;

        public BedNursingUnitService(IBaseRepository<Bed> bedRepo)
        {
            _bedRepo = bedRepo;
        }


        public async Task<WebResponseContent> BedNursingUnitShow()
        {
            var bedNursingUnits = _bedRepo.GetAll();
            var response =  WebResponseContent.Instance.OK("查询成功", bedNursingUnits);
            return await Task.FromResult(response);
        }
    }
}
